export interface ICreateUserRequestData {
  name: string
  password: string
  team: string
  role: string
  nickName?: string | undefined
  department?: string | undefined
  maxOrder: number
}

export interface IUpdateUserRequestData {
  id: string
  name: string
  password: string
  team: string
  role: string
  nickName?: string | undefined
  department?: string | undefined
  maxOrder: number
}

export interface IGetUserRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  // /** 查询参数：用户名 */
  name?: string
  // // /** 查询参数：手机号 */
  // phone?: string
  team: string
  department: string
  maxOrder: number
}

export interface IGetUserData {
  id: string
  name: string
  password: string
  role: string
  team: string
  nickName?: undefined | string
}

export type GetUserResponseData = IApiResponseData<{
  userList: { id: string; name: string; password: string; role: string; team: string }[]
  roleList: IGetUserData[]
  total: number
}>
